<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>项目归档管理</title>
	<meta name="decorator" content="default"/>
	<link rel="stylesheet" href="${ctxStatic}/common/bootstrap.min.css">
	<link rel="stylesheet" href="${ctxStatic}/common/AdminLTE.min.css">
	<link rel="stylesheet" href="${ctxStatic}/common/jeesite.css">
	<script src="${ctxStatic}/jquery-validation/1.16/jquery.validate.js"></script>
	<script src="${ctxStatic}/jquery-validation/1.16/jquery.validate.extend.js"></script>
	<script src="${ctxStatic}/jquery-validation/1.16/localization/messages_zh_CN.js"></script>
	<style type="text/css">
		#inputForm a{
			height: 30px;
			border-color: #ccc;
		}
		#contentTable tr{
			font-size: 13px;
		}
		#contentTable th{
			border-left: 1px solid #ddd;
			border-top: 1px solid #ddd;
		}
		#contentTable td{
			border-left: 1px solid #ddd;
			border-top: 1px solid #ddd;
		}
	</style>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/zx/proFiling/">项目列表</a></li>
		<li class="active"><a href="${ctx}/zx/proFiling/form?lzdId=${proFiling.lzdId}">项目归档</a></li>
	</ul>
	<div class="main-content">
	  <div class="box box-main">
		 <form:form id="inputForm" modelAttribute="proFiling" action="${ctx}/zx/proFiling/save" method="post" class="form-horizontal">
			<form:hidden path="id"/>
			<form:hidden path="lzdId"/>
			<form:hidden path="sectionId"/>
			<sys:message content="${message}"/>	
			<div class="box-body">
				<div class="form-unit">基本信息
					<%-- <span style="float: right">
						<a href="${ctx}/zx/all/lzd/getLzdAllInfo?lzdId=${proFiling.lzdId}&pageFlag=proFiling"> 查看更多项目详情>></a>
					</span> --%>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 项目编码：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:input path="lzd.proNo" maxlength="100" class="form-control required" cssStyle="height:30px" disabled="true"/>
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 项目名称：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:input path="lzd.proName" maxlength="100" class="form-control required" cssStyle="height:30px" disabled="true"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 采购单位：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:input path="lzd.buyUnit" maxlength="255" class="form-control" cssStyle="height:30px" disabled="true"/>
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 项目负责人：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:input path="lzd.proPic" maxlength="100" class="form-control" cssStyle="height:30px" disabled="true"/>
							</div>
						</div>
					</div>
				</div>
				<%-- <c:if test="${proFiling.lzd.isSubpackage eq '2'}">
					<div class="row">
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 项目预算(<font style="color: red">万元</font>)：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8">
									<form:input path="lzd.budgetMoney" maxlength="100" class="form-control" cssStyle="height:30px" disabled="true"/>
								</div>
							</div>
						</div>
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 保证金：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8">
									<form:input path="lzd.depositMoney" maxlength="100" class="form-control" cssStyle="height:30px" disabled="true"/>
								</div>
							</div>
						</div>
					</div>
				</c:if> --%>
				<!-- 标段信息 -->
				<c:if test="${proFiling.lzd.isSubpackage eq '1'}">
					<div class="form-unit">标段信息</div>
					<div class="row">
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 标段名称：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8">
									<form:input path="ts.sectionName" maxlength="100" class="form-control required" cssStyle="height:30px" disabled="true"/>
								</div>
							</div>
						</div>
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 项目预算(<font style="color: red">万元</font>)：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8">
									<form:input path="ts.budgetMoney" maxlength="100" class="form-control" cssStyle="height:30px" disabled="true"/>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 折扣：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8">
									<form:input path="ts.discount" maxlength="100" class="form-control required" cssStyle="height:30px" disabled="true"/>
								</div>
							</div>
						</div>
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 保证金(<font style="color: red">万元</font>)：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8"> 
									<form:input path="depositMoney" maxlength="100" class="form-control number" cssStyle="height:30px" disabled="true"/>
								</div>
							</div>
						</div>
					</div>
				</c:if>
				<div class="form-unit">项目归档</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 项目是否入库：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:select path="entry">
									<form:options items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
								</form:select>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 项目是否验收：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:select path="proCheck">
									<form:options items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
								</form:select>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 入库特殊情况：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-10">
								<form:textarea path="enrtySpecial" rows="3" maxlength="1000" class="form-control" cssStyle="border-radius: 4px;"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 归档时间：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<input name="contractsDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate "
									value="<fmt:formatDate value="${proFiling.contractsDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
									onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});" style="width:100%;height:30px"/>
							</div>
						</div>
					</div>
				</div>
				<%-- <div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 合同扫描文件：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:hidden id="contractsFile" path="contractsFile" htmlEscape="false" maxlength="1000" class="input-xlarge"/>
								<sys:ckfinder input="contractsFile" type="files" uploadPath="/zx/contractFile" selectMultiple="true"/>
							</div>
						</div>
					</div>
				</div>
				
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 项目验收单：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:hidden id="proCheckFile" path="proCheckFile" htmlEscape="false" maxlength="1000" class="input-xlarge"/>
								<sys:ckfinder input="proCheckFile" type="files" uploadPath="/zx/checkFile" selectMultiple="true"/>
							</div>
						</div>
					</div>
				</div>
				
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 招标文件扫描件：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:hidden id="tenderFileScan" path="tenderFileScan" htmlEscape="false" maxlength="1000" class="input-xlarge"/>
								<sys:ckfinder input="tenderFileScan" type="files" uploadPath="/zx/tenderFileScan" selectMultiple="true"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 投标文件扫描件：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:hidden id="submitFileScan" path="submitFileScan" htmlEscape="false" maxlength="1000" class="input-xlarge"/>
								<sys:ckfinder input="submitFileScan" type="files" uploadPath="/zx/submitFileScan" selectMultiple="true"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 资料汇总扫描件：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:hidden id="totalFileScan" path="totalFileScan" htmlEscape="false" maxlength="1000" class="input-xlarge"/>
								<sys:ckfinder input="totalFileScan" type="files" uploadPath="/zx/totalFileScan" selectMultiple="true"/>
							</div>
						</div>
					</div>
				</div> --%>
				<div class="form-actions" style="background-color: #fff">
					<shiro:hasPermission name="zx:proFiling:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
					<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)" style="background-color: #e7e7e7;"/>
				</div>
			</div>
		</form:form>
	  </div>
	 </div>
</body>
</html>